package top.shaozuo.simple.user.validator;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

public class IsMobilePhoneValidator implements ConstraintValidator<IsMobilePhone, String> {

    @Override
    public boolean isValid(String phone, ConstraintValidatorContext constraintValidatorContext) {
        return ValidatorUtils.isMobilePhone(phone);
    }

}
